﻿namespace AnyOffice.Model
{
    using System;

    public class VehicleUsageData
    {
        protected object _deptId;
        protected object _destination;
        protected object _driver;
        protected object _endTime;
        protected object _mileage;
        protected bool _mobileRemind;
        protected string _operator = string.Empty;
        protected object _person;
        protected string _proposer = string.Empty;
        protected object _reason;
        protected object _remark;
        protected DateTime _requestTime = DateTime.Now;
        protected bool _smsRemind;
        protected object _startTime;
        protected int _status;
        protected int _usageId = -1;
        protected int _vehicleId;

        public int DeptId
        {
            get
            {
                return (int) this._deptId;
            }
            set
            {
                this._deptId = value;
            }
        }

        public bool DeptIdIsNull
        {
            get
            {
                return (this._deptId == null);
            }
            set
            {
                if (value)
                {
                    this._deptId = null;
                }
            }
        }

        public string Destination
        {
            get
            {
                return (string) this._destination;
            }
            set
            {
                this._destination = value;
            }
        }

        public bool DestinationIsNull
        {
            get
            {
                return (this._destination == null);
            }
            set
            {
                if (value)
                {
                    this._destination = null;
                }
            }
        }

        public string Driver
        {
            get
            {
                return (string) this._driver;
            }
            set
            {
                this._driver = value;
            }
        }

        public bool DriverIsNull
        {
            get
            {
                return (this._driver == null);
            }
            set
            {
                if (value)
                {
                    this._driver = null;
                }
            }
        }

        public DateTime EndTime
        {
            get
            {
                return (DateTime) this._endTime;
            }
            set
            {
                this._endTime = value;
            }
        }

        public bool EndTimeIsNull
        {
            get
            {
                return (this._endTime == null);
            }
            set
            {
                if (value)
                {
                    this._endTime = null;
                }
            }
        }

        public decimal Mileage
        {
            get
            {
                return (decimal) this._mileage;
            }
            set
            {
                this._mileage = value;
            }
        }

        public bool MileageIsNull
        {
            get
            {
                return (this._mileage == null);
            }
            set
            {
                if (value)
                {
                    this._mileage = null;
                }
            }
        }

        public bool MobileRemind
        {
            get
            {
                return this._mobileRemind;
            }
            set
            {
                this._mobileRemind = value;
            }
        }

        public string Operator
        {
            get
            {
                return this._operator;
            }
            set
            {
                this._operator = value;
            }
        }

        public string Person
        {
            get
            {
                return (string) this._person;
            }
            set
            {
                this._person = value;
            }
        }

        public bool PersonIsNull
        {
            get
            {
                return (this._person == null);
            }
            set
            {
                if (value)
                {
                    this._person = null;
                }
            }
        }

        public string Proposer
        {
            get
            {
                return this._proposer;
            }
            set
            {
                this._proposer = value;
            }
        }

        public string Reason
        {
            get
            {
                return (string) this._reason;
            }
            set
            {
                this._reason = value;
            }
        }

        public bool ReasonIsNull
        {
            get
            {
                return (this._reason == null);
            }
            set
            {
                if (value)
                {
                    this._reason = null;
                }
            }
        }

        public string Remark
        {
            get
            {
                return (string) this._remark;
            }
            set
            {
                this._remark = value;
            }
        }

        public bool RemarkIsNull
        {
            get
            {
                return (this._remark == null);
            }
            set
            {
                if (value)
                {
                    this._remark = null;
                }
            }
        }

        public DateTime RequestTime
        {
            get
            {
                return this._requestTime;
            }
            set
            {
                this._requestTime = value;
            }
        }

        public bool SmsRemind
        {
            get
            {
                return this._smsRemind;
            }
            set
            {
                this._smsRemind = value;
            }
        }

        public DateTime StartTime
        {
            get
            {
                return (DateTime) this._startTime;
            }
            set
            {
                this._startTime = value;
            }
        }

        public bool StartTimeIsNull
        {
            get
            {
                return (this._startTime == null);
            }
            set
            {
                if (value)
                {
                    this._startTime = null;
                }
            }
        }

        public int Status
        {
            get
            {
                return this._status;
            }
            set
            {
                this._status = value;
            }
        }

        public int UsageId
        {
            get
            {
                return this._usageId;
            }
            set
            {
                this._usageId = value;
            }
        }

        public int VehicleId
        {
            get
            {
                return this._vehicleId;
            }
            set
            {
                this._vehicleId = value;
            }
        }
    }
}

